var condition_methods = {};
var vpseq = "";
var tagseq = "";
var sample_types = "";
var rack_vials = new Array();
var initials = "";
var user_id = -1;
var gcmethods = {};
var projects = {};
var updatemode = 0;
/*gcmethods["-1"] = "";
gcmethods["1"] = "OD MeOX60min TMS30min Splitless";
gcmethods["2"] = "MeOX60min TMS30min Splitless";
gcmethods["3"] = "OD MeOX60min TMS30min Split10";
gcmethods["4"] = "MeOX60min TMS30min Split10";
gcmethods["5"] = "OD MeOX60min TMS30min Splitless 25min";
gcmethods["6"] = "MeOX60min TMS30min Splitless 25min";
gcmethods["7"] = "OD MeOX60min TBDMS60min Splitless";
gcmethods["8"] = "MeOX60min TBDMS60min Splitless";
*/
var active_experiment = null;
var active_gcjob = null;
var active_exp_groups = null;
var exp_global_groups = [];
var global_group_regex = {};
var exp_custom_groups = [];
var exp_group_num = 3;
var active_group_html = "";
var global_group_html = "";
var active_sample_groups = {};
var sample_group_collection = {};
var chromatogram_groups = [];
var sample_group_regex = {};
var _updateExperiment = 0;
var cg_options = "";
var chromatogram_results = [];
var isUpdate = false;
var biosample_dictionary = {};
var organism_dictionary = {};
var orgStrainOptions = "";
var bioSampleOptions = "";
var mz_array = [];
var compound_dictionary = {};
var datafile_dictionary = {};
var active_experiment_details = {};
var spectrum_annotation_arr = [];
var compound_precursor_arr = [];
var compound_spectrum_arr = [];
var orphan_products = [];
var current_lcarr = [];
var pre_sif_loaded = 0;
var pre_lcarr = [];
var reagent_group_dictionary = {};
var reagents = {};
var pppage = 0;
var isotracer_list=[];
var existing_tracers=[];
var metabobase_session = {"cid":null,"pid":null};
var element_monoisomass = {'Pr': '140.907657', 'Ni': '57.935347', 'Yb': '173.938873', 'Pd': '105.903475', 'Pt': '194.964785', 'Ru': '101.904348', 'Na': '22.98977', 'Nb': '92.906378', 'Nd': '141.907731', 'Mg': '23.985045', 'Li': '7.016005', 'Dy': '163.929183', 'Y': '88.905856', 'Tl': '204.97441', 'Tm': '168.934225', 'Rb': '84.9118', 'Ti': '47.947947', 'Te': '129.906229', 'Rh': '102.905503', 'Ta': '180.948014', 'Be': '9.012183', 'Xe': '131.904148', 'Ba': '137.905236', 'Tb': '158.92535', 'La': '138.906355', 'Si': '27.976928', 'As': '74.921596', 'U': '238.050786', 'W': '183.950953', 'Gd': '157.924111', 'Fe': '55.934939', 'Br': '78.918336', 'Sr': '87.905625', 'Hf': '179.946561', 'Mo': '97.905405', 'He': '4.002603', 'C': '12', 'B': '11.009305', 'D': '2.014102', 'F': '18.998403', 'I': '126.904477', 'H': '1.007825', 'K': '38.963708', 'Mn': '54.938046', 'Lu': '174.940785', 'O': '15.994915', 'Ne': '19.992439', 'X': '125.904281', 'P': '30.973763', 'S': '31.972072', 'Th': '232.038054', 'Re': '186.955765', 'Kr': '83.911506', 'Sm': '151.919741', 'V': '50.943963', 'Sc': '44.955914', 'Sb': '120.903824', 'Bi': '208.980388', 'N': '14.003074', 'Os': '191.961487', 'Se': '79.916521', 'Hg': '201.970632', 'Zn': '63.929145', 'Co': '58.933198', 'Ag': '106.905095', 'Cl': '34.968853', 'Ca': '39.962591', 'Ir': '192.962942', 'Eu': '152.921243', 'Al': '26.981541', 'Ce': '139.905442', 'Cd': '113.903361', 'Ho': '164.930332', 'Ge': '73.921179', 'Ar': '39.962383', 'Au': '196.96656', 'Zr': '89.904708', 'Ga': '68.925581', 'In': '114.903875', 'Cs': '132.905433', 'Cr': '51.94051', 'Pb': '207.976641', 'Er': '165.930305', 'Cu': '62.929599', 'Sn': '119.902199'};

var element_atomicweight = {'Pr': '140.90765', 'Ni': '58.6934', 'Ru': '101.07', 'Ne': '20.1797', 'Rb': '85.4678', 'Pt': '195.084', 'La': '138.90547', 'Na': '22.98976928', 'Nb': '92.90638', 'Nd': '144.242', 'Mg': '24.305', 'Li': '6.9675', 'Pb': '207.2', 'Re': '186.207', 'Tl': '204.3835', 'Lu': '174.9668', 'Se': '78.96', 'Pd': '106.42', 'Ti': '47.867', 'Te': '127.6', 'Rh': '102.9055', 'Sr': '87.62', 'Ta': '180.94788', 'Be': '9.012182', 'Xe': '131.293', 'Pa': '231.03588', 'Ba': '137.327', 'Tb': '158.92535', 'Yb': '173.054', 'Si': '28.085', 'Bi': '208.9804', 'W': '183.84', 'Gd': '157.25', 'Fe': '55.845', 'Br': '79.904', 'Dy': '162.5', 'Hf': '178.49', 'Hg': '200.59', 'Y': '88.90585', 'He': '4.002602', 'C': '12.0106', 'B': '10.8135', 'D': '2.014102', 'P': '30.973762', 'F': '18.9984032', 'I': '126.90447', 'H': '1.007975', 'K': '39.0983', 'Mn': '54.938045', 'O': '15.9994', 'N': '14.006855', 'Eu': '151.964', 'S': '32.0675', 'U': '238.02891', 'Sn': '118.71', 'Sm': '150.36', 'V': '50.9415', 'Sc': '44.955912', 'Sb': '121.76', 'Mo': '95.96', 'Os': '190.23', 'Kr': '83.798', 'Th': '232.03806', 'Zn': '65.38', 'Co': '58.933195', 'Ge': '72.63', 'Ag': '107.8682', 'Cl': '35.4515', 'Ca': '40.078', 'Ir': '192.217', 'Al': '26.9815386', 'Ce': '140.116', 'Cd': '112.411', 'Ho': '164.93032', 'As': '74.9216', 'Ar': '39.948', 'Au': '196.966569', 'Zr': '91.224', 'Ga': '69.723', 'In': '114.818', 'Cs': '132.9054519', 'Cr': '51.9961', 'Tm': '168.93421', 'Cu': '63.546', 'Er': '167.259'};
